#include <stdio.h>
int g_foo_result;

int foo(unsigned int i, unsigned g)
{
  if (i > g) {
    g_foo_result++;
  }
  int result = 123;
  // CHECK: cmp {{w[0-28]}}, {{w[0-28]}}, ASR #1
  if (i > (g >> 1)) {
    result = 0;
  } else {
    result = 1;
  }
  return result;
}


extern int g_1 = 6;
extern int g_2 = 8;

int main() {
  return foo(g_1, g_2);
}
